package com.cloud.adrian.novel.book.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author: xiangguiliang
 * @version: 1.0
 * @since: 2024/05/30
 */
@Data
public class BookAddReqDto {
    /**
     * 作家id
     */
    private Long authorId;

    /**
     * 作家笔名
     */
    private String penName;

    @Schema(description = "作品方向：1：男频，2：女频", required = true)
    @NotNull
    private Integer workDirection;

    @Schema(description = "分类id", required = true)
    @NotNull
    private Long categoryId;

    @Schema(description = "分类名称", required = true)
    @NotBlank
    private String categoryName;

    @Schema(description = "作品名称", required = true)
    @NotBlank
    private String bookName;

    @Schema(description = "封面图片地址", required = true)
    @NotBlank
    private String picUrl;

    @Schema(description = "作品简介", required = true)
    @NotBlank
    private String bookDesc;

    @Schema(description = "是否收费：1-收费，0-免费", required = true)
    @NotNull
    private Integer isVip;
}
